#include "UtilDebug.h"

void UtilityDebug::UtilityAssertMessage( const char* function, const int line, const char* file, const char* message, ...)
{
	char cMsg[1024];		//AllComment
	char messageChar[1024];	//MessageComment

	va_list		arglist;
	va_start(arglist, message);

	vsprintf(messageChar, message, arglist);

	int result = 0;
	wsprintf(cMsg , "message : %s\n Function : %s\n Line : %d\n File : %s\n",messageChar, function, line, file);
	result = MessageBox(NULL, cMsg, "CFAssert", MB_OKCANCEL | MB_ICONERROR);
}	